<template>
  <div>
    <h2>---子组件A---</h2>
    <p><b>标题：{{title}}</b></p>
    <p><b>价格{{price}}</b></p>
    <p><b>热点：{{hot}}</b></p>
    <button @click="btnA()">砍价啦</button>
    <hr>
  </div>
</template>

<script>
import bus from '../eventBus/index.js'
export default {
  props: ['title', 'price', 'hot', 'index'],
  data () {
    return {

    }
  },
  methods: {
    btnA () {
      bus.$emit('subFn', this.index, 1)
    }
  },
}
</script>

<style scoped>
</style>